package demo.connectsrc;

public class OrderAddress {
    private String orderId;
    private String date;
    private String address;

    public OrderAddress(String orderId, String date, String address) {
        this.address = address;
        this.date = date;
        this.orderId = orderId;
    }

    @Override
    public String toString() {
        return "OrderAddress{"
                + "orderId= "
                + orderId
                + " date= "
                + date
                + " address= "
                + address
                + "}";
    }

    public static OrderAddress of(String orderId, String date, String address) {
        return new OrderAddress(orderId, date, address);
    }

    public static OrderAddress empty() {
        return new OrderAddress("", "", "");
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }
}
